package com.ceair.flight.refund.location.model;



import com.ceair.flight.refund.util.DateUtil;
import com.ceair.flight.refund.util.StringUtil;
import com.ceair.muservice.common.dto.AbstractBaseDO;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;


public class EmdSegDO extends AbstractBaseDO {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4369268460200817024L;
	/**
	 * EMD航段编号
	 */
	private Long emdSegId;
	/**
	 * EMD航段对应机票订单中航段编号
	 */
	private String flightSegId;
	/**
	 * 子工单号
	 */
	private String subJobOrder;
	/**
	 * EMD旅客编号
	 */
	private Long emdPaxNo;
	/**
	 * 机票票号
	 */
	private String tktNo;
	/**
	 * 第几航段
	 */
	private Integer segSq;
	/**
	 * 航程序号
	 */
	private Integer tripSq;

	/**
	 * 市场方航班号
	 */
	private String flightNo;
	/**
	 * 市场方航空公司
	 */
	private String carrCd;
	/**
	 * 承运人航班号
	 */
	private String realFlightNo;
	/**
	 * 承运人航空公司
	 */
	private String realCarrCd;
	/**
	 * 出发日期
	 */
	private Date depDt;
	/**
	 * 出发时间
	 */
	private String depTm;
	/**
	 * 到达日期
	 */
	private Date arrDt;
	/**
	 * 到达时间
	 */
	private String arrTm;
	/**
	 * 到达机场三字码
	 */
	private String arrAirpCd;
	/**
	 * 出发机场三字码
	 */
	private String depAirpCd;
	/**
	 * 到达航站楼
	 */
	private String arrTerm;
	/**
	 * 出发航站楼
	 */
	private String depTerm;
	/**
	 * 仓位
	 */
	private String classTp;
	/**
	 * 舱等
	 */
	private String cabinClass;
	/**票面价**/
	private BigDecimal FCNY;
	/**实付价**/
	private BigDecimal SCNY;
	/**
	 * 币种
	 */
	private String currency;
	/**
	 * 坐标
	 */
	private String seatxyz;
	/**
	 * 座位值
	 */
	private String seatValue;
	/**
	 * EMD票状态
	 * */
	private Integer emdTktStatus;
	/**
	 * 自助值机标识
	 */
	private boolean cuss;
	
	/** emd票 **/
	private Set<EmdTktDO> emdTicketDO;
	/**积分**/
	private BigDecimal pointAmount;
	/**种类**/
	private String pointTp;
	/**pnrCd**/
	private String pnrCd;
	/**是否积分选座**/
	private String point;

	public Long getEmdSegId() {
		return emdSegId;
	}

	public void setEmdSegId(Long emdSegId) {
		this.emdSegId = emdSegId;
	}

	public String getFlightSegId() {
		return flightSegId;
	}

	public void setFlightSegId(String flightSegId) {
		this.flightSegId = flightSegId;
	}

	public String getSubJobOrder() {
		return subJobOrder;
	}

	public void setSubJobOrder(String subJobOrder) {
		this.subJobOrder = subJobOrder;
	}

	public Long getEmdPaxNo() {
		return emdPaxNo;
	}

	public void setEmdPaxNo(Long emdPaxNo) {
		this.emdPaxNo = emdPaxNo;
	}

	public String getTktNo() {
		return tktNo;
	}

	public void setTktNo(String tktNo) {
		this.tktNo = tktNo;
	}

	public Integer getSegSq() {
		return segSq;
	}

	public void setSegSq(Integer segSq) {
		this.segSq = segSq;
	}

	public Integer getTripSq() {
		return tripSq;
	}

	public void setTripSq(Integer tripSq) {
		this.tripSq = tripSq;
	}

	public String getFlightNo() {
		return flightNo;
	}

	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	public String getCarrCd() {
		return carrCd;
	}

	public void setCarrCd(String carrCd) {
		this.carrCd = carrCd;
	}

	public String getRealFlightNo() {
		return realFlightNo;
	}

	public void setRealFlightNo(String realFlightNo) {
		this.realFlightNo = realFlightNo;
	}

	public String getRealCarrCd() {
		return realCarrCd;
	}

	public void setRealCarrCd(String realCarrCd) {
		this.realCarrCd = realCarrCd;
	}

	public Date getDepDt() {
		return depDt;
	}

	public void setDepDt(Date depDt) {
		this.depDt = depDt;
	}

	public String getDepTm() {
		return depTm;
	}

	public void setDepTm(String depTm) {
		this.depTm = depTm;
	}

	public Date getArrDt() {
		return arrDt;
	}

	public void setArrDt(Date arrDt) {
		this.arrDt = arrDt;
	}

	public String getArrTm() {
		return arrTm;
	}

	public void setArrTm(String arrTm) {
		this.arrTm = arrTm;
	}

	public String getArrAirpCd() {
		return arrAirpCd;
	}

	public void setArrAirpCd(String arrAirpCd) {
		this.arrAirpCd = arrAirpCd;
	}

	public String getDepAirpCd() {
		return depAirpCd;
	}

	public void setDepAirpCd(String depAirpCd) {
		this.depAirpCd = depAirpCd;
	}

	public String getArrTerm() {
		return arrTerm;
	}

	public void setArrTerm(String arrTerm) {
		this.arrTerm = arrTerm;
	}

	public String getDepTerm() {
		return depTerm;
	}

	public void setDepTerm(String depTerm) {
		this.depTerm = depTerm;
	}

	public String getClassTp() {
		return classTp;
	}

	public void setClassTp(String classTp) {
		this.classTp = classTp;
	}

	public String getCabinClass() {
		return cabinClass;
	}

	public void setCabinClass(String cabinClass) {
		this.cabinClass = cabinClass;
	}

	public BigDecimal getFCNY() {
		return FCNY;
	}

	public void setFCNY(BigDecimal FCNY) {
		this.FCNY = FCNY;
	}

	public BigDecimal getSCNY() {
		return SCNY;
	}

	public void setSCNY(BigDecimal SCNY) {
		this.SCNY = SCNY;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getSeatxyz() {
		return seatxyz;
	}

	public void setSeatxyz(String seatxyz) {
		this.seatxyz = seatxyz;
	}

	public String getSeatValue() {
		return seatValue;
	}

	public void setSeatValue(String seatValue) {
		this.seatValue = seatValue;
	}

	public Integer getEmdTktStatus() {
		return emdTktStatus;
	}

	public void setEmdTktStatus(Integer emdTktStatus) {
		this.emdTktStatus = emdTktStatus;
	}

	public boolean isCuss() {
		return cuss;
	}

	public void setCuss(boolean cuss) {
		this.cuss = cuss;
	}

	public Set<EmdTktDO> getEmdTicketDO() {
		return emdTicketDO;
	}

	public void setEmdTicketDO(Set<EmdTktDO> emdTicketDO) {
		this.emdTicketDO = emdTicketDO;
	}

	public BigDecimal getPointAmount() {
		return pointAmount;
	}

	public void setPointAmount(BigDecimal pointAmount) {
		this.pointAmount = pointAmount;
	}

	public String getPointTp() {
		return pointTp;
	}

	public void setPointTp(String pointTp) {
		this.pointTp = pointTp;
	}

	public String getPnrCd() {
		return pnrCd;
	}

	public void setPnrCd(String pnrCd) {
		this.pnrCd = pnrCd;
	}

	public String getPoint() {
		return point;
	}

	public void setPoint(String point) {
		this.point = point;
	}

	@Override
	public String toString() {
		return  emdSegId + StringUtil.SEPARATOR + flightSegId + StringUtil.SEPARATOR + subJobOrder
				+ StringUtil.SEPARATOR + emdPaxNo + StringUtil.SEPARATOR + tktNo + StringUtil.SEPARATOR + segSq + StringUtil.SEPARATOR + tripSq
				+ StringUtil.SEPARATOR + flightNo + StringUtil.SEPARATOR + carrCd + StringUtil.SEPARATOR + realFlightNo + StringUtil.SEPARATOR
				+ realCarrCd + StringUtil.SEPARATOR + DateUtil.toString(depDt, StringUtil.DATEFORMATE)  + StringUtil.SEPARATOR + depTm + StringUtil.SEPARATOR + DateUtil.toString(arrDt, StringUtil.DATEFORMATE) + StringUtil.SEPARATOR + arrTm
				+ StringUtil.SEPARATOR + arrAirpCd + StringUtil.SEPARATOR + depAirpCd + StringUtil.SEPARATOR + arrTerm + StringUtil.SEPARATOR
				+ depTerm + StringUtil.SEPARATOR + classTp
				+ StringUtil.SEPARATOR + currency + StringUtil.SEPARATOR + seatxyz + StringUtil.SEPARATOR + seatValue
				+ StringUtil.SEPARATOR+createId+ StringUtil.SEPARATOR + DateUtil.toString(createDtm, StringUtil.DATEFORMATE)
				+ StringUtil.SEPARATOR+updateId+ StringUtil.SEPARATOR + DateUtil.toString(updateDtm, StringUtil.DATEFORMATE)+ StringUtil.SEPARATOR+version+ StringUtil.SEPARATOR+deleted
				+ StringUtil.SEPARATOR + SCNY + StringUtil.SEPARATOR + FCNY + StringUtil.SEPARATOR + cabinClass
				+ StringUtil.SEPARATOR
				+ emdTktStatus + StringUtil.SEPARATOR + cuss  + StringUtil.SEPARATOR + pointAmount
				+ StringUtil.SEPARATOR + pointTp + StringUtil.SEPARATOR + pnrCd + StringUtil.SEPARATOR + point
				;
	}

	
}
